package com.sinosoft.svc.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 接收短信传输类
 * @author zhanglinxu
 *
 */
public class SMSReceiveMassageData {
	
	
	private String id;			//主键ID
	
	private String eId;			//专家电话
	
	private String rcvNo;		//拓展码
	
	private String msg;			//短信内容
	
	private Date rcvTime;		//接收短信时间
	
	private Integer isRead;		//是否阅读
	
	private String rcvTimeS;	//接收短信时间字符串

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String geteId() {
		return eId;
	}

	public void seteId(String eId) {
		this.eId = eId;
	}

	public String getRcvNo() {
		return rcvNo;
	}

	public void setRcvNo(String rcvNo) {
		this.rcvNo = rcvNo;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Date getRcvTime() {
		return rcvTime;
	}

	public void setRcvTime(Date rcvTime) {
		this.rcvTime = rcvTime;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public String getRcvTimeS() {
		return rcvTimeS;
	}

	public void setRcvTimeS(String rcvTimeS) {
		if(rcvTimeS != null){
			try {
				this.rcvTime = new SimpleDateFormat("yyyyMMdd HH:mm:ss").parse(rcvTimeS);
			} catch (ParseException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		this.rcvTimeS = rcvTimeS;
	}
	
	
}
